package com.woniuxy.woniufp.system.mapper;

import com.woniuxy.woniufp.system.entity.User;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

public interface UserMapper extends Mapper<User> {
    @Select("select count(*) from u_user where PHONE = #{value}")
    Long isExitPhone(String phone);

    @Select("select * from u_user where USER_NAME = #{value}")
    User selectUserByName(String loginName);
    @Select("select * from u_user where PHONE = #{value}")
    User selectUserByPhone(String phone);
}